class Course {
    public String name;
    public String teacher;
    public String time;
    public String location;

    public Course(String name, String teacher, String time, String location) {
        this.name = name;
        this.teacher = teacher;
        this.time = time;
        this.location = location;
    }

    @Override
    public String toString() {
        return "课程名: " + name + ", 教师: " + teacher + ", 时间: " + time + ", 地点: " + location;
    }
}
